using SmartSoft.DAL;
using System.Web.Services;
using System;
using System.Data;
using System.Data.SqlClient;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.None)]
public class WSDmSpDataAccess : System.Web.Services.WebService
{
    private DmSpDataAccess objDataAccess = new DmSpDataAccess();
    public WSDmSpDataAccess()
    {
    }


    [WebMethod(MessageName = "NoneParams", Description = "", EnableSession = true)]
    public DataSet GetDataSet()
    {
        return objDataAccess.GetDataSet();
    }

    [WebMethod(MessageName = "OneParams", Description = "", EnableSession = true)]
    public DataSet GetDataSet(string ps_Code)
    {

        return objDataAccess.GetDataSet(ps_Code);
    }

    [WebMethod]
    public DataSet GetDataSetByType(string ps_Type, string ps_Detail)
    {

        return objDataAccess.GetDataSetByType(ps_Type, ps_Detail);
    }

    [WebMethod]
    public int SaveRow(bool pb_NewChecked, DataTable tableRow)
    {

        return objDataAccess.SaveRow(pb_NewChecked, tableRow.Rows[0]);
    }
}
